﻿using System;
using System.Collections.Generic;
using System.Data;
using System.Configuration;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;
using 简单三层架构.IDAL;
using 简单三层架构.Model;

namespace 简单三层架构.BLL
{
    public class Order
    {
        private static readonly IOrder dal = new DAL.Order();

        public IList<OrderInfo> GetAllOrders()
        {
            return dal.GetAllOrders();
        }

        public void Insert(OrderInfo order)
        {
            dal.Insert(order);
        }
    }
}